import Axios from 'axios';

// 获取功能跳转url
export function getGnJumpUrl(func, dptidt, usrnbr, ctycod) {
  return Axios({
    url: 'mpbank-func/gntj/getGnJumpUrl',
    method: 'post',
    data: { 'func': func, 'dptidt': dptidt, 'usrnbr': usrnbr, 'ctycod': ctycod }
  });
}

// 获取功能跳转列表
export function getJumpList() {
  return Axios({
    url: 'mpbank-func/gntj/getJumpList',
    method: 'get'
  });
}

// 记录推荐信息
export function setGnTjRec(func, dptidt, usrnbr, recmid, latitude, longitude, gpsadr) {
  return Axios({
    url: 'mpbank-func/gntj/setGnTjRec',
    method: 'post',
    data: { 'func': func, 'dptidt': dptidt, 'usrnbr': usrnbr, 'recmid': recmid, 'latitude': latitude, 'longitude': longitude, 'gpsadr': gpsadr }
  });
}

// 发送短信验证码
export function sendMsgCode(mobile, smssysid) {
  return Axios({
    url: 'mpbank-app/sms/sendMsgCode',
    method: 'post',
    data: { 'mobile': mobile, 'smssysid': smssysid }
  });
}

// 校验短信验证码
export function checkMsgCode(mobile, smssysid, checkcode) {
  return Axios({
    url: 'mpbank-app/sms/checkMsgCode',
    method: 'post',
    data: { 'mobile': mobile, 'smssysid': smssysid, 'checkcode': checkcode }
  });
}